package day04;
import java.util.Scanner;
public class Practice02 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);


        for(int times1=0;times1<5;times1++){
            System.out.println("行动是成功的阶梯");
        }
        System.out.println("继续执行...");

        for(int number=1;number<=9;number++){
            System.out.println(number+"*9="+number*9);
        }
        for(int number=1;number<=9;number+=2){
            System.out.println(number+"*9="+number*9);
        }
        for(int number=9;number>=1;number--){
            System.out.println(number+"*9="+number*9);
        }
         /*
          number=9 true 输出
          number=7 true 输出
          number=5 true 输出
          number=3 true 输出
          number=1 true 输出
          number=-1 false for结束
         */



        /*
        int number = (int)(Math.random()*1000+1); //1到1000之内
        int guess1;
        do{
            System.out.println("猜吧!");
            guess1 = scan.nextInt();
            if(guess1>number){
                System.out.println("猜大了");
            }else if(guess1<number){
                System.out.println("猜小了");
            }else{
                System.out.println("猜对了");
            }
        }while(guess1!=number);

         */




        /*
        int number=(int)(Math.random()*1000+1); //1~1000
        System.out.println("猜吧");
        int guess1=scan.nextInt();
        while(guess1!=number){
            if(guess1>number){
                System.out.println("猜大了");
            }else{
                System.out.println("猜小了");
            }
            System.out.println("猜吧");
            guess1=scan.nextInt();
        }
        System.out.println("猜对啦");

         */







        /*
        int command2=scan.nextInt();
        switch(command2){
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("转帐");
                break;
            case 4:
                System.out.println("退卡");
                break;
            default:
                System.out.println("输入错误");
        }


         */


    }
}
